﻿using System;
using System.Collections.Generic;

namespace Max.PH5_2008A.ShoppingCode.EFCoreDbFirst.Models;

/// <summary>
/// 商品模块 - 商品SKU表
/// </summary>
public partial class TbProductSku
{
    /// <summary>
    /// 商品SKU主键
    /// </summary>
    public Guid Id { get; set; }

    /// <summary>
    /// 商品编码
    /// </summary>
    public string? Code { get; set; }

    /// <summary>
    /// SPUId
    /// </summary>
    public Guid? Spuid { get; set; }

    /// <summary>
    /// 采购价格
    /// </summary>
    public decimal? PurchasePrice { get; set; }

    /// <summary>
    /// 市场价格
    /// </summary>
    public decimal? MarketPrice { get; set; }

    /// <summary>
    /// 销售价格
    /// </summary>
    public decimal? SalePrice { get; set; }

    /// <summary>
    /// 销售数量
    /// </summary>
    public int? SaleNumber { get; set; }

    /// <summary>
    /// 原始库存
    /// </summary>
    public int? Stock { get; set; }

    /// <summary>
    /// 有效库存（可用）
    /// </summary>
    public int? ValidStock { get; set; }

    /// <summary>
    /// 锁定库存
    /// </summary>
    public int? LockStock { get; set; }

    /// <summary>
    /// 最少库存
    /// </summary>
    public int? MinStock { get; set; }

    /// <summary>
    /// 是否上架
    /// </summary>
    public string? IsUp { get; set; }

    /// <summary>
    /// 标识
    /// </summary>
    public string? Flag { get; set; }

    /// <summary>
    /// 创建日期
    /// </summary>
    public DateTime? CreatedTime { get; set; }

    public string? CreatedBy { get; set; }

    public DateTime? UpdateTime { get; set; }

    public string? UpdateBy { get; set; }
}
